
let deleteKuo = function(data){
    return data.replace(/(^{*)|(}*$)/g,"")
}

let addRmb =  function(data){
    return `￥ ${data}`
}

let dataStr = function(data){
    let result = data.match(/\d+/)[0];
    return result;
}

let getData = function(data){
    let result = data.substring(data.indexOf("=")+1, data.indexOf("&"))
    return result;
}

let getDate = function (data){
    data.replace(/\s/)
} 

export default {
    deleteKuo,
    addRmb,
    dataStr,
    getData,
    getDate
}